﻿//
//
//

namespace Microsoft.OpenTurf.Silverlight.ViewModel
{
    using System.Collections.Generic;
    using System.Windows;
    using Microsoft.OpenTurf.Silverlight;
    using Microsoft.OpenTurf.Silverlight.Common;

    public class MainViewModel : MainViewBase
    {
        #region Properties
        public string BaseUrl { get; set; }
        #endregion

        #region ctor
        public MainViewModel()
        {
            MenuWidth = new GridLength(225);
            TitleHeight = new GridLength(100);
            Initialize();
        }
        #endregion

        #region Methods
        void Initialize()
        {
            BaseUrl = App.Current.Host.Source.Host;
            //Messenger.Default.Register<Dictionary<string, string>>(this, NotificationTokens.LoadDataSources, (sources) => LoadDataSources(sources));
        }
        private void LoadDataSources(Dictionary<string, string> sources)
        {
            //foreach (var item in sources)
            //{
            
            //}
        }
        #endregion
    }
}